<table class="kunTable">
<thead>
	<tr>
		<th width="100">{{ helper:lang line="install:module" }}</th>
        <th width="100">{{ helper:lang line="global:status" }}</th>
	</tr>
</thead>
<tbody>
{{model}}
	<tr>
		<td>{{id}}</td>
        <td>{{ button:href: tag="a" class="status status-{{status}}" 
							title={helper:lang line="global:status-{{status}}"} data-toggle="tooltip" 
							href={url:site uri="admin/install/status/{{id}}/{{status}}"} }}</td>
	</tr>
{{/model}}
</tbody>
</table>

<script type="text/javascript">
$('a.status').click(function(){
	$url = $(this).attr('href');
	$.get($url).done(function() {
    	location.reload();
  	});
	return false;
});
</script>